package com.zsw.example02;

import com.sun.source.tree.NewArrayTree;

public class CylinderTest {
    public static void main(String[] args) {
        Cylinder cylinder = new Cylinder();
        //设置圆的半径 来自与父亲
//        cylinder.setR(5);
//        //圆柱独特
//        cylinder.setHeight(10);
        double s = cylinder.findVolume();
        System.out.println("圆柱的体积：" + s);


    }
}
